package com.demo;

/**
 * 饿汉模式(线程安全)
 * @author ytj
 * @date 2022/2/21
 */
public class Single3 {
    private static Single3 instance=new Single3();

    private Single3(){

    }

    public static Single3 getInstance(){
        return instance;
    }
}
